var teacherName = $.cookie("teacherName")
var teachericon = $.cookie("teachericon")
$(".user-avatar").attr("src",teachericon)
$(".user-name").html(teacherName)

$("body").on("click",".returnlogin",function(){
    console.log(1)
    $.removeCookie("teacherName");
    $.removeCookie("teachericon");
    $.removeCookie("teacher");
    $.ajax({
        url:"/teacher/logout"
        ,type:"get"
        ,success:function(data){
            console.log(data)
        }
    })
    location.href = "TeacherLogin"
})